<template>
    <div class="contextMenu" ref="contextMenu" :style="pos">
        <div class="menuCon" v-for="(k, i) in menu" :key="i" @click="goBack(k.fun)">
            {{ k.name }}
        </div>
    </div>
</template>

<script>
export default {
    props: ['menu', 'pos'],
    methods: {
        goBack(fun) {
            this.$emit(fun);
        },
    },
};
</script>

<style lang="scss">
@import './theme/css/contextmenu.scss';
</style>
